home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.08 Aug 91 / editor4 / editor.r < prev    next >
Encoding:
Text File  |  1991-06-18  |  2.7 KB  |  124 lines  |  [TEXT/MPS ]

  1. /*    editor.r 
  2.     Rez file for MacTutor C++/MacApp Editor example
  3.     J. Langowski March 1991
  4. */
  5.  
  6. #ifndef __TYPES.R__
  7. #include "Types.r"
  8. #endif
  9.  
  10. #ifndef __SYSTYPES.R__
  11. #include "SysTypes.r"
  12. #endif
  13.  
  14. #ifndef __MacAppTypes__
  15. #include "MacAppTypes.r"
  16. #endif
  17.  
  18. #ifndef __ViewTypes__
  19. #include "ViewTypes.r"
  20. #endif
  21.  
  22. #if qDebug
  23. include "Debug.rsrc";
  24. #endif
  25.  
  26. include "MacApp.rsrc";
  27. include "Printing.rsrc";
  28.  
  29. include "Defaults.rsrc" 'SIZE'(-1);
  30. include "Defaults.rsrc" 'ALRT'(phAboutApp);
  31. include "Defaults.rsrc" 'DITL'(phAboutApp);
  32. include "Defaults.rsrc" 'cmnu'(mApple);
  33. include "Defaults.rsrc" 'cmnu'(mEdit);
  34. include "Defaults.rsrc" 'cmnu'(mBuzzWords);
  35.  
  36. include "Editor" 'CODE';
  37.  
  38. include "editor.rsrc";
  39.  
  40. #define kSignature        'JLMT'
  41. #define kDocFileType        'JL01'
  42. #define getInfoString    "©1991 J.Langowski/MacTutor. "
  43.  
  44.  
  45. resource 'cmnu' (2) {
  46.     2,
  47.     textMenuProc,
  48.     allEnabled,
  49.     enabled,
  50.     "File",
  51.      {
  52.         "New", noIcon, "N", noMark, plain, 10;
  53.         "Open…", noIcon, "O", noMark, plain, 20;
  54.         "-", noIcon, noKey, noMark, plain, nocommand;
  55.         "Close", noIcon, noKey, noMark, plain, 31;
  56.         "Save", noIcon, "S", noMark, plain, 30;
  57.         "Save As…", noIcon, noKey, noMark, plain, 32;
  58.         "Save a Copy In…", noIcon, noKey, noMark, plain, 33;
  59.         "-", noIcon, noKey, noMark, plain, nocommand;
  60.         "Page Setup…", noIcon, noKey, noMark, plain, 176;
  61.         "Print One", noIcon, "P", noMark, plain, 177;
  62.         "Print…", noIcon, noKey, noMark, plain, 178;
  63.         "-", noIcon, noKey, noMark, plain, nocommand;
  64.         "Quit", noIcon, "Q", noMark, plain, 36
  65.     }
  66. };
  67.  
  68. resource 'MBAR' (kMBarDisplayed,purgeable) 
  69. {
  70.     {mApple; 2; mEdit;}
  71. };
  72.  
  73.  
  74. /*--------------------------------------------------------------------------------
  75.  The overall package version
  76. --------------------------------------------------------------------------------*/
  77. RESOURCE 'vers' (2,
  78. #if qNames
  79. "Package Version",
  80. #endif
  81.     purgeable) {
  82.     0x02,
  83.     0x00,
  84.     beta,
  85.     0x06,
  86.     verUs,
  87.     "2.0",
  88.     "MacApp® 2.0, ©Apple Computer, Inc. 1990"
  89. };
  90.  
  91.  
  92. /*--------------------------------------------------------------------------------
  93.  The revision of this particular file
  94. --------------------------------------------------------------------------------*/
  95. RESOURCE 'vers' (1,
  96. #if qNames
  97. "File Version",
  98. #endif
  99.     purgeable) {
  100.     0x01,
  101.     0x00,
  102.     beta,
  103.     0x05,
  104.     verUs,
  105.     "Editor",
  106.     "©JL/MacTutor June 1991"
  107. };
  108.  
  109. /* =============================== debug window ================================= */
  110. resource 'dbug' (kDebugParamsID,
  111. #if qNames
  112. "Debug",
  113. #endif
  114.     purgeable) {
  115.         {350, 4, 474, 636},        /* Bounding rect for debug window */
  116.         1,                             /* Debug window font rsrc ID (normal = monaco) */
  117.         9,                                 /* Debug window font size (normal = 9) */
  118.         100,                            /* Number of lines */
  119.         100,                            /* Width of lines in characters */
  120.         true,                            /* open initially */
  121.         "Jörg's Debug Window"    /* Window title */
  122. };
  123.  
  124.